<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="overflow-y: visible;">
    <jsp:include page="../../../include/IncludeMain.jsp"></jsp:include>
  	<body style="overflow-y: visible;" onload="changeRowColor();">
    	<table class="mainTable">
		<thead>
			<tr class="tableController">
				<th colspan="19">
					<h3>订单明细列表</h3>
					<div class="tableControllerButton">
						<a class="button" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/OrderShoe.do?act=get&order_id=${order_id }'; return false;"><span><img src="${pageContext.request.contextPath }/js/kui/icons/application_add.png" align="absmiddle"/>&nbsp;添加</span></a>
						<a class="button" href="javascript:void(0)" onclick="this.blur(); deleteAll(); 'return false';"><span><img src="${pageContext.request.contextPath }/js/kui/icons/application_delete.png" align="absmiddle"/>&nbsp;删除</span></a>
						<a class="button" href="javascript:void(0)" onclick="this.blur(); history.go(-1);'return false';"><span><img src="${pageContext.request.contextPath }/js/kui/icons/anticlockwise.png" align="absmiddle"/>&nbsp;返回</span></a>
					</div>
				</th>
			</tr>
			
			<tr class="tableDefined">
				<td>&nbsp;</td>
				<th><h4>单号&nbsp;:</h4></th>
				<td>${orderList.order_id }&nbsp;</td>
				<th><h4>下单日期&nbsp;:</h4></th>
				<td>${orderList.order_date }&nbsp;</td>
				<th><h4>交货日期&nbsp;:</h4></th>
				<td>${orderList.delivery_date }&nbsp;</td>
			</tr>
			
			<tr class="tableTitle">
				<th>
					<h3><input type="checkbox" onclick="selectAll(this);"/></h3>
				</th>
				<th>
					<h3>品牌</h3>
				</th>
				<th>
					<h3>成品料号</h3>
				</th>
				<th>
					<h3>款号</h3>
				</th> 
				<th>
					<h3>楦号</h3>
				</th> 
				<th>
					<h3>材质、颜色</h3>
				</th>  
				<th>
					<h3>工厂序号</h3>
				</th>
				<th>
					<h3>下单号</h3>
				</th> 
				<th colspan="8">
					<center><h3>配码</h3></center>
				</th> 
				<th>
					<center><h3>合计</h3></center>
				</th> 
				<th>
					<center><h3>状态</h3></center>
				</th> 
				<th>
					<h3>操作</h3>
				</th>                  
			</tr>
		</thead>
		<tbody>
		<form action="${pageContext.request.contextPath }/pages/business/OrderShoe.do?act=del&order_id=${order_id }" name="myForm" id="myForm" method="post">
			<c:forEach items="${pager.data}" var="orderShoeView">
			<c:if test="${orderShoeView.id!= 0}">
			<tr>
				<td width="20px"><input type="checkbox" name="id" value="${orderShoeView.id}"/></td>
				<td>${orderShoeView.brand}</td>
				<td>${orderShoeView.product_id}</td>
				<td>${orderShoeView.model_id}</td>
				<td>${orderShoeView.style_id}</td>
				<td>${orderShoeView.product_color}</td>
				<td>${orderShoeView.factory_series}</td>
				<td>${orderShoeView.order_num}</td>
				<td><h5>${orderShoeView.size_33}</h5></td>
				<td><h5>${orderShoeView.size_34}</h5></td>
				<td><h5>${orderShoeView.size_35}</h5></td>
				<td><h5>${orderShoeView.size_36}</h5></td>
				<td><h5>${orderShoeView.size_37}</h5></td>
				<td><h5>${orderShoeView.size_38}</h5></td>
				<td><h5>${orderShoeView.size_39}</h5></td>
				<td><h5>${orderShoeView.size_40}</h5></td>
				<td style="color:#ff0000"><center><h5>${orderShoeView.size_33 + orderShoeView.size_34 + orderShoeView.size_35 + orderShoeView.size_36 + orderShoeView.size_37 + orderShoeView.size_38 + orderShoeView.size_39 + orderShoeView.size_40}</h5></center></td>
				<td><center>${orderShoeView.transact_status == 0? "未完成":"已完成或已经冲单"}</center></td>
				<td>
					<a class="button-small" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/Cutting.do?act=list&order_shoe_id=${orderShoeView.id}'; return false;"><span>开料明细</span></a>
					<c:if test="${orderShoeView.transact_status == 0}">
						<a class="button-small" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/CancelShoe.do?act=add&order_shoe_id=${orderShoeView.id}'; return false;"><span>冲单(加入仓库)</span></a>
						<a class="button-small" href="javascript:void(0)" onclick="this.blur(); window.location='${pageContext.request.contextPath }/pages/business/OrderShoe.do?act=get&orderShoe.id=${orderShoeView.id }&order_id=${order_id }'; return false;"><span>修改</span></a>
						<a class="button-small" href="javascript:void(0)" onclick="this.blur(); deleteOne('${pageContext.request.contextPath }/pages/business/OrderShoe.do?act=del&id=${orderShoeView.id }&order_id=${order_id }'); return false;"><span>删除</span></a>
					</c:if>			
				</td>
			</tr>
			</c:if>
			</c:forEach>
		</form>
		</tbody>
		<tfoot>
			<tr  class="tableController_bottom">
				<td colspan="19" align="center">
					<jsp:include page="../../../include/SplitPage.jsp">
						<jsp:param name="pager" value="${action.pager}"/>
					</jsp:include>
				</td>
			</tr>
		</tfoot>
	</table>
	
  </body>
</html>
				